
如果之前运行hg对仓库做某种操作时意外退出了,那么,对于该仓库的锁文件可能未及时清除。这种情况下,再运行hg进行操作时,会因为等待“持有该锁的进程”退出而超时,因为之前的进程已经不存在了。具体地,妳会看到类似这样的错误信息:
waiting for lock on repository /SbWeb/Spec held by 'MagicLinux:6913'
终止: repository /SbWeb/Spec: 等待 MagicLinux:6913 持有的锁定超时
解决办法就是,将该仓库中的“.hg/store/lock”文件手动删除。
http://stackoverflow.com/questions/12865/mercurial-stuck-waiting-for-lock
亮点:
|
up vote 152 down vote accepted |
When "waiting for lock on repository", delete the repository file: .hg/store/lock When deleting the lock file, you must make sure nothing else is accessing the repository. (If the lock is a string of zeros, this is almost certainly true). |
未知美车
HxLauncher: Launch Android applications by voice commands